<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title></title>
    <script src="../resources/scripts/jquery/jquery-1.4.2.js" type="text/javascript"></script>
    <script src="../codes/flareJ.Base.js" type="text/javascript"></script>
    <script src="../codes/flareJ.AutoComplete.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function(){
            //自动提示
            window.acj = $("#txtACJ").ACJ({
                evts: {
                    update: function(e, p){
                        var thiz = this;

                        //获取数据
                        $.ajax({
                            type: "get",
                            url: "../resources/json/testAc.json",
                            data: {
                                txtValue: p.input
                            },
                            cache: false,
                            success: function (data) {
                                data = eval("("+data+")");

                                //更新列表
                                thiz.updateComplete(data);
                            }
                        });
                    }
                }
            });
        });
    </script>
</head>
<body>
    <input style="width: 220px;" type="text" id="txtACJ" value="" />
</body>
</html>